# coding: utf-8
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QVBoxLayout
from qfluentwidgets import MaskDialogBase, IndeterminateProgressRing


class LoadingDialog(MaskDialogBase):
    def __init__(self, parent=None):
        super().__init__(parent)
        self.verticalLayout = QVBoxLayout(self.widget)
        self.progressRing = IndeterminateProgressRing(self.widget)
        self.progressRing.setFixedSize(40, 40)
        self.verticalLayout.addWidget(self.progressRing, 0, Qt.AlignmentFlag.AlignCenter)
        self.widget.setGraphicsEffect(None)
